package bocchi.base;

import bocchi.BocchiCore;
import bocchi.general.ResourcePath;
import basemod.abstracts.CustomRelic;
import com.megacrit.cardcrawl.helpers.ImageMaster;
import com.megacrit.cardcrawl.relics.AbstractRelic;

public abstract class BaseCustomRelic extends CustomRelic {

    private static final String DEFAULT_IMG_PATH = ResourcePath.RELIC + "default.png";
    private static final LandingSound LANDING_SOUND = LandingSound.FLAT;

    public BaseCustomRelic(String rawID, RelicTier tier) {
        super(BocchiCore.getGameID(rawID), ImageMaster.loadImage(DEFAULT_IMG_PATH), tier, LANDING_SOUND);
    }

    @Override
    public String getUpdatedDescription() {
        return this.DESCRIPTIONS[0];
    }

    @Override
    public AbstractRelic makeCopy() {
        try {
            return this.getClass().newInstance();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
